import com.LCQ.crm.utils.SqlSessionUtil;
import com.LCQ.crm.utils.UUIDUtil;
import com.LCQ.crm.workbench.dao.ClueActivityRelationDao;
import com.LCQ.crm.workbench.domain.ClueActivityRelation;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class test11 {
    public static void main(String[] args) {
        ClueActivityRelationDao clueActivityRelationDao = SqlSessionUtil.getSqlSession().getMapper(ClueActivityRelationDao.class);
        String clueId="1297000e89614808b81e9fce401db2af";
        String[] actIds={"4efe2bdce2274d0db6d3191d3d920a71","5e2c1f0ec33f49fcb610dc0c170f533f"};

        List<ClueActivityRelation> list = new ArrayList<>();
        for(int i=0; i<actIds.length; i++){
            ClueActivityRelation c = new ClueActivityRelation();
            c.setId(UUIDUtil.getUUID());
            c.setClueId(clueId);
            c.setActivityId(actIds[i]);
            list.add(c);
        }
        int result = clueActivityRelationDao.inserts(list);

        System.out.println(result);
    }
}
